package com.hsy.crm.web.domain.po.report;


import org.apache.commons.lang3.StringUtils;

public class PurchaseTrackPo {

    private String productCode;
    private String productName;
    private String unitName;
    private String model;
    private String number;
    private String purchaseDate;
    private String purchaseCode;
    private String vendorName;
    private Integer dhNumber;
    private Long dhDate;
    private String dhInfo;
    private Integer bussType;
    private Long id;
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getBussType() {
        return bussType;
    }

    public void setBussType(Integer bussType) {
        this.bussType = bussType;
    }

    public Integer getDhNumber() {
        return dhNumber;
    }

    public void setDhNumber(Integer dhNumber) {
        this.dhNumber = dhNumber;
    }

    public Long getDhDate() {
        return dhDate;
    }

    public void setDhDate(Long dhDate) {
        this.dhDate = dhDate;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getPurchaseCode() {
        return purchaseCode;
    }

    public void setPurchaseCode(String purchaseCode) {
        this.purchaseCode = purchaseCode;
    }

    public String getVendorName() {
        return vendorName;
    }

    public void setVendorName(String vendorName) {
        this.vendorName = vendorName;
    }

    public String getDhInfo() {
        return dhInfo;
    }

    public void setDhInfo(String dhInfo) {
        if(!StringUtils.isEmpty(dhInfo)){
            String[] infos = dhInfo.split(",");
            this.dhDate = Long.parseLong(infos[0]);
            this.dhNumber = Integer.parseInt(infos[1]);
        }
        this.dhInfo = dhInfo;
    }
}
